<form id="formEditAddress" name="formEditAddress" enctype="multipart/form-data" method="post" action="">
<?php
foreach ($query->result() as $row):
?>
<input type="hidden" name="id_member" id="id_member" value="<?php echo $row->id_member?>" />
  <table width="0" border="0" cellspacing="2" cellpadding="3">
    <tr>
      <td align="right" valign="top">Address :</td>
      <td valign="top"><input size="40" class="validate['required']" type="text" name="address" id="address" value="<?php echo $row->address ?>"/></td>
    </tr>
    <tr>
      <td align="right" valign="top">City :</td>
      <td valign="top"><input class="validate['required']" type="text" name="city" id="city" value="<?php echo $row->city ?>" /></td>
    </tr>
  </table>
<?php endforeach ?>
</form>